home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2000 #5
/
Amiga Plus CD - 2000 - No. 5.iso
/
Tools
/
Misc
/
InstallerNG
/
developer
/
gui
/
example
/
igui_GetNextEntry.c
< prev
next >
Wrap
C/C++ Source or Header
|
1999-10-28
|
1KB
|
59 lines
#include "includes.h"
#include "installergui_data.h"
/********************************************************************
*
* DESCRIPTION
*
*/
/********************************************************************
*
* STATIC
*
*/
/********************************************************************
*
* EXTERN
*
*/
/********************************************************************
*
* PUBLIC
*
*/
/********************************************************************
*
* CODE
*
*/
char * __asm igui_GetNextEntry(register __a0 APTR application)
{
#ifdef DEBUG
DEBUG_MAKRO
#endif
{
struct Application *app = (struct Application *) application;
struct FileInfoBlock *fib;
// get the next active list entry
DoMethod(app->app_DirlistList, MUIM_List_NextSelected, &app->app_DirlistWalker);
// return NULL, if the end of the list was reached
if (app->app_DirlistWalker == MUIV_List_NextSelected_End) { return(NULL); }
// otherwise get the currently active list entry
else
{
DoMethod(app->app_DirlistList, MUIM_List_GetEntry, app->app_DirlistWalker, &fib);
return((char *) &(fib -> fib_FileName));
}
}
}